﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000163 RID: 355
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BuyGoodsScRsp : IMessage<BuyGoodsScRsp>, IMessage, IEquatable<BuyGoodsScRsp>, IDeepCloneable<BuyGoodsScRsp>, IBufferMessage
	{
		// Token: 0x170004BF RID: 1215
		// (get) Token: 0x0600100E RID: 4110 RVA: 0x0002F407 File Offset: 0x0002D607
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BuyGoodsScRsp> Parser
		{
			get
			{
				return BuyGoodsScRsp._parser;
			}
		}

		// Token: 0x170004C0 RID: 1216
		// (get) Token: 0x0600100F RID: 4111 RVA: 0x0002F40E File Offset: 0x0002D60E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BuyGoodsScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170004C1 RID: 1217
		// (get) Token: 0x06001010 RID: 4112 RVA: 0x0002F420 File Offset: 0x0002D620
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BuyGoodsScRsp.Descriptor;
			}
		}

		// Token: 0x06001011 RID: 4113 RVA: 0x0002F427 File Offset: 0x0002D627
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyGoodsScRsp()
		{
		}

		// Token: 0x06001012 RID: 4114 RVA: 0x0002F430 File Offset: 0x0002D630
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyGoodsScRsp(BuyGoodsScRsp other) : this()
		{
			this.shopId_ = other.shopId_;
			this.goodsId_ = other.goodsId_;
			this.goodsBuyTimes_ = other.goodsBuyTimes_;
			this.returnItemList_ = ((other.returnItemList_ != null) ? other.returnItemList_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001013 RID: 4115 RVA: 0x0002F4A0 File Offset: 0x0002D6A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuyGoodsScRsp Clone()
		{
			return new BuyGoodsScRsp(this);
		}

		// Token: 0x170004C2 RID: 1218
		// (get) Token: 0x06001014 RID: 4116 RVA: 0x0002F4A8 File Offset: 0x0002D6A8
		// (set) Token: 0x06001015 RID: 4117 RVA: 0x0002F4B0 File Offset: 0x0002D6B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ShopId
		{
			get
			{
				return this.shopId_;
			}
			set
			{
				this.shopId_ = value;
			}
		}

		// Token: 0x170004C3 RID: 1219
		// (get) Token: 0x06001016 RID: 4118 RVA: 0x0002F4B9 File Offset: 0x0002D6B9
		// (set) Token: 0x06001017 RID: 4119 RVA: 0x0002F4C1 File Offset: 0x0002D6C1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GoodsId
		{
			get
			{
				return this.goodsId_;
			}
			set
			{
				this.goodsId_ = value;
			}
		}

		// Token: 0x170004C4 RID: 1220
		// (get) Token: 0x06001018 RID: 4120 RVA: 0x0002F4CA File Offset: 0x0002D6CA
		// (set) Token: 0x06001019 RID: 4121 RVA: 0x0002F4D2 File Offset: 0x0002D6D2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GoodsBuyTimes
		{
			get
			{
				return this.goodsBuyTimes_;
			}
			set
			{
				this.goodsBuyTimes_ = value;
			}
		}

		// Token: 0x170004C5 RID: 1221
		// (get) Token: 0x0600101A RID: 4122 RVA: 0x0002F4DB File Offset: 0x0002D6DB
		// (set) Token: 0x0600101B RID: 4123 RVA: 0x0002F4E3 File Offset: 0x0002D6E3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList ReturnItemList
		{
			get
			{
				return this.returnItemList_;
			}
			set
			{
				this.returnItemList_ = value;
			}
		}

		// Token: 0x170004C6 RID: 1222
		// (get) Token: 0x0600101C RID: 4124 RVA: 0x0002F4EC File Offset: 0x0002D6EC
		// (set) Token: 0x0600101D RID: 4125 RVA: 0x0002F4F4 File Offset: 0x0002D6F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600101E RID: 4126 RVA: 0x0002F4FD File Offset: 0x0002D6FD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BuyGoodsScRsp);
		}

		// Token: 0x0600101F RID: 4127 RVA: 0x0002F50C File Offset: 0x0002D70C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BuyGoodsScRsp other)
		{
			return other != null && (other == this || (this.ShopId == other.ShopId && this.GoodsId == other.GoodsId && this.GoodsBuyTimes == other.GoodsBuyTimes && object.Equals(this.ReturnItemList, other.ReturnItemList) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001020 RID: 4128 RVA: 0x0002F58C File Offset: 0x0002D78C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ShopId != 0U)
			{
				num ^= this.ShopId.GetHashCode();
			}
			if (this.GoodsId != 0U)
			{
				num ^= this.GoodsId.GetHashCode();
			}
			if (this.GoodsBuyTimes != 0U)
			{
				num ^= this.GoodsBuyTimes.GetHashCode();
			}
			if (this.returnItemList_ != null)
			{
				num ^= this.ReturnItemList.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001021 RID: 4129 RVA: 0x0002F62C File Offset: 0x0002D82C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001022 RID: 4130 RVA: 0x0002F634 File Offset: 0x0002D834
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001023 RID: 4131 RVA: 0x0002F640 File Offset: 0x0002D840
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this.ShopId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.ShopId);
			}
			if (this.GoodsId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.GoodsId);
			}
			if (this.returnItemList_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.ReturnItemList);
			}
			if (this.GoodsBuyTimes != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.GoodsBuyTimes);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001024 RID: 4132 RVA: 0x0002F6F0 File Offset: 0x0002D8F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ShopId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ShopId);
			}
			if (this.GoodsId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GoodsId);
			}
			if (this.GoodsBuyTimes != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GoodsBuyTimes);
			}
			if (this.returnItemList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ReturnItemList);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001025 RID: 4133 RVA: 0x0002F790 File Offset: 0x0002D990
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BuyGoodsScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ShopId != 0U)
			{
				this.ShopId = other.ShopId;
			}
			if (other.GoodsId != 0U)
			{
				this.GoodsId = other.GoodsId;
			}
			if (other.GoodsBuyTimes != 0U)
			{
				this.GoodsBuyTimes = other.GoodsBuyTimes;
			}
			if (other.returnItemList_ != null)
			{
				if (this.returnItemList_ == null)
				{
					this.ReturnItemList = new ItemList();
				}
				this.ReturnItemList.MergeFrom(other.ReturnItemList);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001026 RID: 4134 RVA: 0x0002F834 File Offset: 0x0002DA34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001027 RID: 4135 RVA: 0x0002F840 File Offset: 0x0002DA40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num == 40U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 56U)
					{
						this.ShopId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 72U)
					{
						this.GoodsId = input.ReadUInt32();
						continue;
					}
					if (num == 98U)
					{
						if (this.returnItemList_ == null)
						{
							this.ReturnItemList = new ItemList();
						}
						input.ReadMessage(this.ReturnItemList);
						continue;
					}
					if (num == 104U)
					{
						this.GoodsBuyTimes = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040006D1 RID: 1745
		private static readonly MessageParser<BuyGoodsScRsp> _parser = new MessageParser<BuyGoodsScRsp>(() => new BuyGoodsScRsp());

		// Token: 0x040006D2 RID: 1746
		private UnknownFieldSet _unknownFields;

		// Token: 0x040006D3 RID: 1747
		public const int ShopIdFieldNumber = 7;

		// Token: 0x040006D4 RID: 1748
		private uint shopId_;

		// Token: 0x040006D5 RID: 1749
		public const int GoodsIdFieldNumber = 9;

		// Token: 0x040006D6 RID: 1750
		private uint goodsId_;

		// Token: 0x040006D7 RID: 1751
		public const int GoodsBuyTimesFieldNumber = 13;

		// Token: 0x040006D8 RID: 1752
		private uint goodsBuyTimes_;

		// Token: 0x040006D9 RID: 1753
		public const int ReturnItemListFieldNumber = 12;

		// Token: 0x040006DA RID: 1754
		private ItemList returnItemList_;

		// Token: 0x040006DB RID: 1755
		public const int RetcodeFieldNumber = 5;

		// Token: 0x040006DC RID: 1756
		private uint retcode_;
	}
}
